<{assign var="seo_sub_title" value="会员登录"}>

    <{include file="block/small-header.html"}> 
    <!--主体内容开始-->
	<div class="login_box">
	<h2><font id='form' class="on">会员登录</font></h2>
	<form id="account-form2">
			<input type="hidden" name="account[from]" value="<{$pager.from}>" />
			<table>
			<tr>
					<td class="title">昵称</td>
					<td class="middle">
					<p class="input"><span class="ico_list username_ico lt lt"></span>
							<input class="input text" name="data[name]" type="text" placeholder="请输入您的昵称"/>
						</p>
				</td>
				</tr>
			<tr>
					<td class="title">手机号码</td>
					<td class="middle">
					<p class="input"><span class="ico_list password_ico lt"></span>
							<input class="input text" name="data[phone]" type="text" id="phone" placeholder="请输入您的手机号码"/>
						</p>
				</td>
				</tr>
			<tr>
					<td class="title">验证码</td>
					<td class="middle">
					<p class="input short lt"><span class="ico_list yanzheng_ico lt"></span>
							<input class="text short"   name="data[code]" type="text" placeholder="请输入验证码"/>
						</p>
					<span id='code'  class="goYz lt"><a id='show_loading' class="none pointcl">...</a><a login="passport:sendsms" class="pointcl">发送验证码</a></span> </td>
				</tr>
			<tr>
					<td></td>
					<td style="text-align:left;">
					<input type="submit" action="<{link ctl='passport:byphone' arg0='member' http='ajax'}>" mini-submit="#account-form2" class="btn" value="立即注册" />
				</td>
				</tr>
		</table>
		</form>
</div>
	<!--主体内容结束--> 
	<!--底边内容开始--> 
	<script>
$("[verify]").click(function(){
	$($(this).attr("verify")).attr("src", "<{link ctl='magic:verify' http='ajax'}>&_"+Math.random());
});
</script> 
	<script type="text/javascript" src="<{$pager.res}>/script/cloud-zoom.js"></script> 
	<script type="text/javascript" src="<{$pager.res}>/script/raty/jquery.raty.js"></script> 
	<script>
	(function(K, $){
		
		 $("[login]").click(function(e){
			var link = "<{link ctl='passport/sendsms'  arg0='#phone#' http='base'}>";
			var phone = $("#phone").val();
			var last_time = 60;
			var __interval = null;
			$.getJSON(link.replace("#phone#", phone), function(ret){
				if(ret.error){
					Widget.MsgBox.error(ret.message.join(""));
				}else{
					__interval = setInterval(function(){
						last_time --;
						if(last_time >0){
							$("#show_loading").html("重新获取（"+last_time+"）秒").show();
							$("[login]").hide();
						}else{
							clearInterval(__interval);
							last_time = 60;
							$("#show_loading").hide();
							$("[login]").show();
						}
					}, 1000);
				}
			});
		});
	})(window.KT, window.jQuery);
</script> 
	<{include file="block/footer.html"}> 